package com.didispace.chapter14;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;

@RestController
@Slf4j
public class HelloController {
	@Autowired
	private DidiProperties didi;

    @RequestMapping("/hello")
    public String index() {
    	log.info("哈哈哈");
    	log.info(didi.getFrom());
    	log.info(didi.getTo());
    	log.info(didi.getWhere());
        return "Hello World";
    }

}